/* components/chat/chat.wxss */
.mesageBox {
  .img-input{
    width: 53px;
    height: 32px;
  }
  .msgLoadingBox {
    margin: 0 15rpx;
  }
  .msg-item {
    padding-bottom: 20rpx;

    .msg-date {
      font-family: PingFang SC-Regular;
      font-weight: 400;
      font-size: 24rpx;
      color: rgba(49, 49, 49, 0.5);
      line-height: 40rpx;
      text-align: center;
    }

    .msg-content {
      width: 100%;
      display: flex;
      column-gap: 22rpx;
      margin-top: 20rpx;

      .user-avatar {
        width: 56rpx;
        height: 56rpx;
        border-radius: 50%;
      }

      .msg-image {
        width: 240rpx;
        height: 240rpx;
        border-radius: 20rpx;
        border: 1px solid rgb(223, 222, 222);
      }

      .msg-text {
        max-width: 60vw;
        width: max-content;
        padding: 20rpx 20rpx 10rpx;
        font-family: PingFang SC-Regular;
        font-weight: 400;
        font-size: 28rpx;
        color: #313131;
        line-height: 44rpx;
        overflow: hidden;
      }

      .msg-time {
        font-family: PingFang SC-Regular;
        font-weight: 400;
        font-size: 20rpx;
        color: rgba(49, 49, 49, 0.5);
        line-height: 23rpx;
        text-align: right;
      }

      .statusBox {
        image {
          width: 38rpx;
          height: 38rpx;
          margin: 0 20rpx;
        }
      }
    }

    .flex-start {
      display: flex;
      justify-content: flex-start;
      align-items: center;

      .msg-text {
        background: #FFFFFF;
        width: auto;
        max-width: 60vw;
        border-radius: 20rpx 20rpx 20rpx 4rpx;
        border: 2rpx solid rgba(0, 0, 0, 0.1);
        word-wrap: break-word; /* 旧版浏览器支持 */
        overflow-wrap: break-word; /* 现代浏览器支持 */
      }
    }

    .pauseIcon {
      width: 45rpx;
      height: 45rpx;
      margin-top: 5rpx;
    }

    .flex-end {
      display: flex;
      justify-content: flex-end;
      align-items: center;

      .msg-text {
        background: #FFF0E6;
        width: auto;
        max-width: 60vw;
        border-radius: 20rpx 20rpx 4rpx 20rpx;
      }
    }

    .msg-text-voice {
      position: relative;
      padding-left: 78rpx;

      .user-avatar {
        position: absolute;
        left: 0;
        bottom: 0;
      }
    }

    .senderAudioBox {
      background: #FFF0E6;
      color: #FF7828;

    }
    .noSenderAudioBox {
      background: #fff;
      color: #313131;
      
    }
    .audioBox {
      width: auto;
      max-width: 90%;
      border-radius: 20rpx 20rpx 4rpx 20rpx;
      padding: 20rpx 20rpx 10rpx;
      font-family: PingFang SC-Regular;
      font-weight: 400;
      font-size: 28rpx;
      line-height: 44rpx;
      overflow: hidden;

      .audioTimeBox {
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        font-size: 24rpx;
      }
      .noWaveContainer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6rpx;
        height: 30rpx;
        overflow: hidden;
        margin: 0 20rpx;
        .senderBar {
          background: #ff7828;
        }
        .noSenderBar {
          background: #313131;
        }
        &.noWaveContainerop{
          .noSenderBar {
            background: #313131;
            opacity: 0.5;
          }
        }
        /* 柱子样式 */
        .bar {
          width: 5rpx;
          animation-timing-function: ease-in-out;
          border-radius: 5rpx;
        }
        .bar:nth-child(1) {
          height: 8rpx;
        }

        .bar:nth-child(2) {
          height: 15rpx;
        }

        .bar:nth-child(3) {
          height: 8rpx;
        }

        .bar:nth-child(4) {
          height: 15rpx;
        }

        .bar:nth-child(5) {
          height: 20rpx;
        }

        .bar:nth-child(6) {
          height: 30rpx;
        }

        .bar:nth-child(7) {
          height: 10rpx;
        }

        .bar:nth-child(8) {
          height: 18rpx;
        }

        .bar:nth-child(9) {
          height: 12rpx;
        }

        .bar:nth-child(10) {
          height: 8rpx;
        }

        .bar:nth-child(11) {
          height: 3rpx;
        }

      }
      /* 容器样式 */
      .wave-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6rpx;
        height: 30rpx;
        overflow: hidden;
        margin: 0 20rpx;
        .senderBar {
          background: #ff7828;
        }
        .noSenderBar {
          background: #313131;
        }
        &.wave-containerop{
          .noSenderBar {
            background: #313131;
            opacity: 0.5;
          }
        }
        /* 柱子样式 */
        .bar {
          width: 5rpx;
          // height: 30rpx;
          // background: #313131;
          animation-timing-function: ease-in-out;
          border-radius: 5rpx;
        }

        /* 动画效果 */
        .bar:nth-child(1) {
          animation: bounce1 0.5s infinite;
          animation-delay: 0.1s;
          height: 10rpx;
        }

        .bar:nth-child(2) {
          animation: bounce2 0.5s infinite;
          animation-delay: 0.2s;
          height: 15rpx;
        }

        .bar:nth-child(3) {
          animation: bounce3 0.5s infinite;
          animation-delay: 0.3s;
          height: 20rpx;
        }

        .bar:nth-child(4) {
          animation: bounce4 0.5s infinite;
          animation-delay: 0.4s;
          height: 25rpx;
        }

        .bar:nth-child(5) {
          animation: bounce5 0.5s infinite;
          animation-delay: 0.5s;
          height: 30rpx;
        }

        .bar:nth-child(6) {
          animation: bounce 0.5s infinite;
          animation-delay: 0.6s;
          height: 10rpx;
        }

        .bar:nth-child(7) {
          animation: bounce5 0.5s infinite;
          animation-delay: 0.5s;
          height: 30rpx;
        }

        .bar:nth-child(8) {
          animation: bounce4 0.5s infinite;
          animation-delay: 0.4s;
          height: 25rpx;
        }

        .bar:nth-child(9) {
          animation: bounce3 0.5s infinite;
          animation-delay: 0.3s;
          height: 20rpx;
        }

        .bar:nth-child(10) {
          animation: bounce2 0.5s infinite;
          animation-delay: 0.2s;
          height: 15rpx;
        }

        .bar:nth-child(11) {
          animation: bounce1 0.5s infinite;
          animation-delay: 0.1s;
          height: 10rpx;
        }

        @keyframes bounce1 {
          0%,
          100% {
            height: 10rpx;
          }

          50% {
            height: 5rpx;
          }
        }

        @keyframes bounce2 {

          0%,
          100% {
            height: 15rpx;
          }

          50% {
            height: 10rpx;
          }
        }

        @keyframes bounce3 {

          0%,
          100% {
            height: 20rpx;
          }

          50% {
            height: 10rpx;
          }
        }

        @keyframes bounce4 {

          0%,
          100% {
            height: 25rpx;
          }

          50% {
            height: 10rpx;
          }
        }

        @keyframes bounce5 {

          0%,
          100% {
            height: 30rpx;
          }

          50% {
            height: 10rpx;
          }
        }

        @keyframes bounce {

          0%,
          100% {
            height: 10rpx;
          }

          50% {
            height: 30rpx;
          }
        }
      }
    }

    .videoBox {
      width: 240rpx;
      height: 240rpx;
      border-radius: 20rpx;
      // text-align: center;
      display: flex;
      flex-direction: column;
      // justify-content: center;
      align-items: center;
      position: relative;

      image {
        width: 66rpx;
        height: 66rpx;
        margin: 60rpx;
        position: absolute;
        top: 30rpx;
        z-index: 999;
      }

      .videoTimeBox {
        position: absolute;
        z-index: 999;
        bottom: 10rpx;
        right: 20rpx;
        text-align: right;
        margin: 0 0 0 120rpx;
        // justify-content: flex-end;
        // align-items: flex-end;
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        font-size: 24rpx;
        color: #FFFFFF;
        line-height: 40rpx;
      }
    }

  }
  .accountBox {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 24rpx;
    color: #313131;
    line-height: 40rpx;
    margin: 20rpx 0;

    image {
      width: 38rpx;
      height: 38rpx;
      margin: 0 20rpx;
    }
  }
  .pad40{
    padding:20px 0 50px 0;
  }
  .linkBox {
    color: #4e78fe;
    text-decoration: underline;
  }
}
.text_class {
  color: #FF7828 !important;
}